

function gateway_init()    
    JINGS.InsertLuaFunc(100,  "login");
    JINGS.InsertLuaFunc(101,  "login_back");
    JINGS.InsertLuaTimer(200, 60000, "echo");
end


function echo(msgid)
   print("echo "..msgid);
   return 1;
end
 



function login(playerid, msgid)
    local username = PLAYER.ReadUtf();
    local password = PLAYER.ReadUtf();
    print("login");
    print("username:"..username.." password:"..password);
    PLAYER.Redirect("login"); 
end


function login_back(playerid, msgid)
    print("login_back");
end 
